package com.gun.management.module.raffle.dal.dataobject.lottery;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.gun.management.framework.mybatis.core.dataobject.BaseDO;

/**
 * 抽奖信息 DO
 *
 * @author 测试账号
 */
@TableName("raffle_lottery")
@KeySequence("raffle_lottery_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LotteryDO extends BaseDO {

    /**
     * 编号
     */
    @TableId(value = "id",type=IdType.AUTO)
    private Long id;
    /**
     * 抽奖名称
     */
    private String name;
    /**
     * 抽奖类型(对应数据字典raffle_lottery_category)
     */
    private Long categoryId;
    /**
     * 每人抽奖总次数
     */
    private Integer totalTimes;
    /**
     * 每人每天抽奖次数
     */
    private Integer dayTotalTimes;
    /**
     * 单次抽奖消耗积分
     */
    private Integer expenseScore;

    /**
     * 限制添加规则数量
     */
    private Integer maxPrizeCount;
    /**
     * 状态 (0-启用 1-禁用)
     */
    private Integer status;

    @Schema(description = "背景图片url",   example = "http://*****.com/bg.png")
    private String bgPicture;

    @Schema(description = "过期时间",   example = "2024-10-01")
    private LocalDateTime expiredTime;

    @Schema(description = "活动详情",   example = "2024-10-01国庆节深圳市南山区庆典")
    private String content;


    /**
     * 备注
     */
    private String remark;

    private Long tenantId;

}